Skip to content

chore(release): 3.1.0 - #144

Merged
pasichDev merged 26 commits into
mainfrom
release/3.1.0
Nov 27, 2026
Merged

pasichDev merged 26 commits into
mainfrom
release/3.1.0

Conversation

@pasichDev

@pasichDev pasichDev commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

✅ Ready: merge, then tag the merge commit v3.1.0. The tag releases Android only.

Before the tag: Android device checks (listed under "Not verified"). Do not start the Release workflow by hand.

What

Release 3.1.0 (versionCode 30100) for Android: Google Play, F-Droid and the GitHub Release with the signed APKs.

The desktop app (Linux first) is in the tree and is not published: the tag does not build it. Its passphrase, keyring and packaging code is covered by CI on pull requests only.

Security

PIN screens

  • The dots show only typed digits, a failed attempt's dots stay red until the next digit, and the keypad with the Unlock button under it fits a short screen (split screen, small phones) ([Post 3.0] Bugs and Enhancements #137). Since 3.0 the PIN is confirmed with that button; on short screens it could sit below the fold.
  • Re-authentication and the change, wipe and duress flows wait while a PIN is checked: a second entry is wiped and ignored instead of starting a second check. What was typed is wiped when the vault locks in the middle of a flow.
  • A check of the current PIN tells a wrong PIN from a Keystore that did not answer, and Cancel during that check cancels what was asked (an erase, an export).

Editor (#137)

  • One pair of selection handles for a selection across blocks; Copy and Cut from the keyboard's own buttons take the whole selection; forward delete at the end of a text block joins the block below; the gap above a table is a normal one; no stray caret after tapping a locked checklist; the note scrolls while a list item is dragged to its edge; the checklist lock follows the scroll; the block tools mark the active heading level.

Import (#132)

  • JSON exports are scanned item by item instead of being parsed into one tree twice; the merge runs in batches inside one transaction with a cancellation check between them; out of memory while writing is reported as "too large" instead of crashing.
  • A Standard Notes export: a tag title is cut to 256 characters and a note takes at most 100 tags.

Release pipeline

  • release.yml: verify-tag, the Android build, and one github-release job that creates a draft, uploads only allow-listed file names, writes SHA256SUMS, attests the build provenance of every APK and mapping file, and publishes last. publish-play.yml is unchanged.
  • The Linux jobs of release.yml run only on a manual run and only while the repository variable LINUX_RELEASE_ENABLED is true (it is not set).

In the tree, not released

  • The unlock secret sits behind UnlockSecretPolicy. Android and iOS bind PinSecretPolicy, which is the previous code moved: same PBKDF2, same HKDF infos, same slot version 3 bytes. The desktop binds a passphrase policy (Argon2id, slot version 4) (Desktop: finish and release the Windows, macOS and Linux apps #106).
  • Desktop: passphrase screens, the Secret Service prompt, the "key not found" state, session-lock sources, a card layout for the entry screens, a right-click menu in text fields; the .deb and Flatpak packaging with a five-system install check on pull requests.

Docs

Dependencies

Why

The duress PIN fixes have been waiting on main since 21 November and #137 collects the bugs reported against 3.0, among them the Unlock button that a short screen hides: a user who updated from 2.x through F-Droid wrote that the app no longer opens after the six digits.

Linux is held back: nothing of it has run on a real Linux session yet, and its first screens were still laid out for a phone.

Behaviour changes

  • A pushed tag builds and publishes Android only. A release tag must point at a commit on main; the Release is a draft until every file is uploaded; a tag that already has a published Release is not overwritten by a re-run; a failed attestation (after one retry) leaves the Release as a draft.
  • Android: slot bytes, key derivation, attempt counting and lockout are those of 3.0.1. A Keystore failure during re-authentication is shown as such instead of "wrong PIN" (still not counted).
  • Android: a vault that has no readable PIN slot gets a new Keystore key when a PIN is set, also when an old key was left behind. Nothing the old key could open exists in that state.
  • Android: "Erase all data" also clears a lock that raced the erase, so the new onboarding is not left covered.
  • Six texts say "device" where they said "phone".
  • Import refuses a JSON export that contains a bare value which is not true, false, null or a number.
  • The table menu button moved beside the grid, so a table is about 32 dp narrower.

Testing

One local run on the final tree, green: spotlessCheck, and unit tests, koverVerify, detekt and checkKotlinAbi for :app, :editor, :core:common, :core:crypto, :core:security, :core:keystore, :core:database, :core:resources, :shared and :desktopApp, the editor's documentation build and the iOS compile of :shared.

  • The existing PIN golden vectors and tests pass unedited.
  • Two read-only reviews of the final tree: the release path for a pushed tag (job graph with the Linux jobs skipped, Play, F-Droid reproducibility inputs, the Android classpath, docs and store notes), and Android regressions of the changes written for the desktop. No critical or high finding; the medium and low ones are fixed here.
  • CI on this pull request: unit and instrumented tests (API 26 and 35), the R8 release build, the F-Droid reproducible build.

Not verified:

  • The github-release job of release.yml has never run: the 3.1.0 tag is its first run, and Google Play does not wait for it. If it fails, re-running that job alone is safe while the Release is a draft.
  • Android on a device: FlorisBoard (Select all, then Copy), Unexpected Keyboard and WM Keyboard (forward delete), dragging a list item by finger, the lock screen in split screen and on a small phone, a narrow table, RTL, and the PIN-flow changes with TalkBack.
  • Import on a device with real content:// providers, and a kill or a full disk during an import (Import: stream large files and test process death, low memory and real file providers #132).
  • iOS tests (the iOS sources compile).
  • Translations of the new strings and of the store notes were not read by native speakers.
  • Nothing of the desktop app on a real Linux session; it does not block this release.

Not in this release (from #137): the second pair of handles after a double long press on one word, forward delete sent as an IME edit at the end of a field and inside lists and tables, block actions in the toolbar settings, tapping the gap between two non-text blocks.

Deploy

  • The tag starts a new 10% staged rollout on Google Play that replaces the rollout of 3.0.1.
  • SHA256SUMS is unsigned unless the ENCLY_GPG_* secrets are added.

Security and data checklist

  • No new permission, and in particular no INTERNET permission.
  • No network, analytics, telemetry or proprietary dependency.
  • No new path that puts plaintext outside the vault: the import still reads into memory only and writes inside one vault transaction; the typed PIN length is not kept in saved state.
  • Key derivation and the vault slots are unchanged on Android and iOS.
  • The Room schema and the backup schema are unchanged.
  • User-visible changes are listed in CHANGELOG.md under 3.1.0.

References

#137, #134, #132, #130, #106, #136; #123 stays open (waits for Compose). Supersedes #138, #139, #140, #142. Left for later: #141 (Compose BOM needs compileSdk 37.1) and #143 (Dokka 2.3.0 fails the documentation build on warnings).

Folds Dependabot #138, #139, #140, #142 and #143 into a branch that runs the full CI.
The Compose BOM bump (#141) is left out: androidx.compose 1.13 needs compileSdk 37.1.
…gap and list reach

- One pair of handles for a selection across blocks: the field's own selection is collapsed.
- Copy and Cut from the keyboard's context actions take the cross-block selection.
- Delete at the end of a text block joins the block below, as one undo step.
- The table menu button sits beside the first row, so the gap above a table is a normal one.
- A tap on a locked checklist clears focus, so no caret blinks elsewhere.
- A list item dragged to the edge scrolls the note; the checklist lock follows the scroll.
- The block tools mark the active heading level.

Refs: #137
The dots row has no empty rings ahead of the digits; after a wrong PIN it shows that attempt's
dots in the error colour until the next digit. In a short window (split screen) the header, gaps
and keys shrink so the keypad and the unlock action stay visible.

Refs: #137
JSON exports are scanned member by member instead of being parsed into one tree twice; bare
values must be true, false, null or a number. The merge runs in batches inside one transaction
with a cancellation check between them, and running out of memory while writing is reported as
a file that is too large. Tests cover interrupted, cancelled and failing writes and non-seekable
streams.

Refs: #132
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Coverage

Overall Project 85.4% 🍏

There is no coverage information present for the Files changed

…set in every window

A logind source is asked, not trusted to say when a lock ended: a locker that never reports
its end (swaylock, i3lock through xss-lock) left the last report at locked, and every later
Lock and PrepareForSleep was dropped. Every report of a lock now reaches the vault lock.

While a recovery-phrase unlock still owes a new PIN or the choice to keep it, a window that
starts with the vault open starts on that screen, and menu and keyboard commands other than
Lock are refused.

Refs: #106
… tag

The release workflow is split into verify-tag, android-build, linux-build, linux-verify and
github-release. The Release is created as a draft, gets the APKs, the .deb and the Flatpak
bundle with one SHA256SUMS and build provenance attestations, and is published last. A failed
Linux build leaves the Android files publishable; a manual run adds the Linux files to an
existing tag. The package checks are one script that pull request CI runs as well.

The installers carry the licence texts of Skiko, Skia, PDFBox, SLF4J, Commons Logging, Bouncy
Castle and the bundled runtime.

Refs: #106
2.3.0 warns about the iOS sources of the editor on a Linux runner, and the documentation build
fails on warnings.
…rsion 4

AuthenticationManager is routed through UnlockSecretPolicy. PinSecretPolicy is the code that
was there, moved: PBKDF2-HMAC-SHA256 600k, the same device-factor input, the same HKDF infos
and slot version 3, so Android and iOS derive the same keys and write the same bytes, and an
unreadable slot still costs an attempt.

Slot version 4 carries a KDF id, a factor id and the KDF costs in its header, all authenticated
as AAD for the main, wipe and duress slots. A policy decides which headers it accepts before
anything is stretched, and may report a stretch that could not be made: that attempt is
refunded like a device factor that did not answer. A secret change in a decoy session takes
the real vault's decision at the real vault's cost.

Refs: #106
DesktopPasswordPolicy: NFC and UTF-8, Argon2id v1.3 at 64 MiB, 3 passes and 1 lane through
Bouncy Castle (desktop source set only), mixed with the device secret from the OS secret store,
slot version 4. A passphrase is 12 to 128 characters when set; the limits apply to the NFC
form, so the same text typed decomposed opens the vault. Costs read from a slot are range
checked before anything is allocated, the Argon2 memory is wiped after every run, and running
out of memory is an attempt that was not made. A generator suggests five random words.

Refs: #106
… while a secret is checked

Screens take the kind of secret from the policy: the keypad for a PIN, a masked text field for
a passphrase, on the lock screen, in onboarding, change, the forced new secret after a recovery
unlock, re-authentication, and the wipe and duress secrets, with a passphrase suggestion where a
new one is chosen. Texts have passphrase twins in all ten languages.

For both kinds: a secret entered while another is still being checked is wiped and ignored in
re-authentication and in the change, wipe and duress flows; what was typed and the kept first
entry are wiped when the vault locks in the middle of a flow; a repeated error is announced
again; the FAQ no longer says the lock screen hides the length while you type.

Refs: #106, #137
…the session bus is silent

The desktop graph binds DesktopPasswordPolicy in place of the PIN policy; a vault slot of the
PIN format found there is not usable and leads to the recovery phrase and a new passphrase. A
logind read that times out or fails is unknown, not unlocked: the last reported state stays.
Bouncy Castle is on the licences screen.

Refs: #106
…s and publish only expected files

The .deb took its dependencies from the Ubuntu 24.04 runner and could not be installed on
Debian 12 or Ubuntu 22.04. It is now built on 22.04 and installed in CI on Ubuntu 22.04, 24.04
and latest and in Debian 12 and 13 containers, on a system without a desktop menu directory:
its postinst is patched after the build to create that directory when it is missing.

The release job takes files from each build by an allow-list of names, empties a draft left by
an earlier attempt before uploading, and refuses a manual run for a tag older than 3.1.0.

Refs: #106
… a missing key as lost data

Linux: the Secret Service is asked to unlock or create its default keyring with its own dialog (bounded, ended by a lock), onboarding checks it first, and an item that is not found is a state to retry, with the recovery phrase and a wipe as the last resort. A new vault always makes a new device secret.

Locking: a screen saver nobody owns is not a failed read, a lock the OS cannot confirm is dropped after three unanswered reads over 30 s, and logind signals are taken from this session and from logind.

Windows: erasing the vault sends every window to onboarding, a file opened while locked waits for the unlock, and a new window no longer discards an unlock that is being checked. Links go through the OpenURI portal; a session without an X11 display gets a message instead of a silent exit.

All platforms: a check of the current secret tells a wrong one from a key store that did not answer, Cancel during that check cancels, the lock screen waits for the navigation graph, and texts shown on a computer no longer speak of a phone.
…Flatpak print

harden-postinst.sh dropped --in-place when it started itself again under fakeroot, so the .deb job failed. The Flatpak gets the CUPS socket: without it the print dialog finds no printer.
…d a localised menu in text fields

The passphrase field swallowed every secondary click to keep its content in, which also took Paste away. It now offers Paste and Select all, never Copy or Cut; other fields get Cut, Copy, Paste and Select all in the app language. Android and iOS are unchanged.
A screen that went off while "Erase all data" ran left the lock flag set with no vault to lock, and the onboarding of the new vault stayed covered until the process ended.
…itory variable

The desktop app is not released with 3.1.0: a pushed tag builds and publishes Android only, and the release notes name Linux packages only when there are some.
…on under the form

Onboarding, the lock screen and its recovery, key-not-found, data-loss and storage pages were a phone column with the button pinned to the window foot. On a pointer-first host with a medium or wider window they are a 520 dp card; touch hosts and compact windows keep the previous layout.
@pasichDev
pasichDev marked this pull request as ready for review November 27, 2026 10:28
@pasichDev
pasichDev merged commit 6b1e45c into main Nov 27, 2026
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant